<?php
/*\
 *
 *
 *
 *
 *
\*/

function oh_array_set($array,$path,$value) {
	if (is_array($path)) {
		switch (count($path)) {
			case 1: $array[$path[0]] = $value;break;
			case 2: $array[$path[0]][$path[1]] = $value;break;
			case 3: $array[$path[0]][$path[1]][$path[2]] = $value;break;
			case 4: $array[$path[0]][$path[1]][$path[2]][$path[3]] = $value;break;
		}
	}
	return $array;
}

function oh_array_get($array,$path) {
	if (is_array($path)) {
		switch (count($path)) {
			case 1: return $array[$path[0]];
			case 2: return $array[$path[0]][$path[1]];
			case 3: return $array[$path[0]][$path[1]][$path[2]];
			case 4: return $array[$path[0]][$path[1]][$path[2]][$path[3]];
		}
	}
	return null;
}
